package com.anotherrobbo.armedia.engine.impl;

import java.util.concurrent.atomic.AtomicInteger;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.anotherrobbo.armedia.media.impl.BaseMedia;

public class DummyPlayerEngine extends AbstractPlayerEngine {
	Logger log = LoggerFactory.getLogger(getClass());
	AtomicInteger counter = new AtomicInteger();
	
	public DummyPlayerEngine() {
		this.currentMedia = new BaseMedia(counter.incrementAndGet() + ".mp3");
	}

	@Override
	public void play() {
		log.info("play()");
	}

	@Override
	public void next() {
		log.info("next()");
		this.currentMedia = new BaseMedia(counter.incrementAndGet() + ".mp3");
	}

	@Override
	public void prev() {
		log.info("prev()");
		this.currentMedia = new BaseMedia(counter.decrementAndGet() + ".mp3");
	}

}
